<template>
	<div class="body" :style="{ background: data.web.background, color: data.web.color }">
		<div class="row" :style="{ background: data.web.Contentbackground }">
			<div class="img">
				<el-image class="image" :src="'https://webgallery.oss-cn-beijing.aliyuncs.com/' + data.web.img" />
			</div>

			<div class="text">
				<!-- 内容使用编辑器 -->
				<!-- 最新编辑器 -->
				<!-- 设置是否可编辑 -->
				<tiptap :content="data.web.content[$i18n.locale]" />
			</div>
		</div>
	</div>
</template>
<script>
	import Tiptap from '@/components/Tiptap.vue'
	export default {
		components: {
			Tiptap,
		},
		props: ['data'],
	}
</script>
<style scoped>
	.img {
		display: flex;
		justify-content: space-between;
		/* 让子元素在主轴上均匀分散 */
		align-items: center;
	}
</style>
